import Vue from 'vue'
import Router from 'vue-router';
import Home from './views/Home.vue';
Vue.use(Router)

/***************  项目路由写在这  */

const childRoutes = [
  // wyq-首页
  {
    path: '/index',
    component: () => import('./component/wyq/index.vue')

  },
  // wpw-router-spa
  {
    path: '/spa',
    component: () => import('./component/wpw/spa.vue')
  },
  // gc-router
  {
    path: '/allbooks',
    component: () => import('./component/gc/allbooks.vue')
  }, {
    path: '/BWBO',
    component: () => import('./component/gc/BWBO.vue')
  }, {
    path: '/logistics',
    component: () => import('./component/gc/logistics.vue')
  }, {
    path: '/finance',
    component: () => import('./component/gc/finance.vue')
  }, {
    path: '/abapbasis',
    component: () => import('./component/gc/ABAPBASIS.vue')
  },
  // azn-招聘
  {
    path: '/recruit',
    component: () => import('./component/azn/recruit.vue')
  },
  //dbw-router-textbook
  {
    path: '/textbook',
    component: () => import('./component/dbw/textbook.vue')
  },

  // 邓鹏鑫的页面
  {
    path: '/pjdata',
    component: () => import('./component/dpx/information.vue')
  },
  {
    path: '/info_01',
    component: () => import('./component/dpx/info_01.vue')
  },
  {
    path: '/info_02',
    component: () => import('./component/dpx/info_02.vue')
  },
  {
    path: '/info_03',
    component: () => import('./component/dpx/info_03.vue')
  },
  {
    path: '/info_04',
    component: () => import('./component/dpx/info_04.vue')
  },
  {
    path: '/info_05',
    component: () => import('./component/dpx/info_05.vue')
  },
  {
    path: '/info_06',
    component: () => import('./component/dpx/info_06.vue')
  },
  {
    path: '/info_07',
    component: () => import('./component/dpx/info_07.vue')
  },
  {
    path: '/info_08',
    component: () => import('./component/dpx/info_08.vue')
  },
  {
    path: '/info_09',
    component: () => import('./component/dpx/info_09.vue')
  }, {
    path: '/info_10',
    component: () => import('./component/dpx/info_10.vue')
  },
  {
    path: '/info_11',
    component: () => import('./component/dpx/info_11.vue')
  },
  {
    path: '/info_12',
    component: () => import('./component/dpx/info_12.vue')
  },
  {
    path: '/info_13',
    component: () => import('./component/dpx/info_13.vue')
  },
  {
    path: '/info_14',
    component: () => import('./component/dpx/info_14.vue')
  },
  {
    path: '/info_15',
    component: () => import('./component/dpx/info_15.vue')
  },
  {
    path: '/info_16',
    component: () => import('./component/dpx/info_16.vue')
  },
  // cty
  {
    path: '/library',
    component: () => import('./component/cty/library.vue')
  },
  {
    path: '/push',
    component: () => import('./component/cty/push.vue')
  },
  //dbw-router-video
  {
    path: '/video',
    component: () => import('./component/dbw/video.vue')
  }
];




/***************  vue页面路由  */
const router = new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [{
    path: '/',
    component: Home,
    redirect: '/index',
    children: childRoutes
  }]
});

export default router
